const initState = {
  list: ['a', 'b', 'c'],
}

export default function lsReducer(state = initState, action) {
  switch (action.type) {
    case 'push':
      const newList = [...state.list]
      newList.push(action.item)
      return {
        ...state,
        list: newList,
      }
    default:
      return state
  }
}
